package com.gegong.imr.client.utils.os;

public class MachineUtils {


    /**
     * 获取cpu序列号
     *
     * @return
     */
    public static String getCPUSerialNumber() {
        if (OSInfo.isWindows()) return MachineSerialNumberUtil.getCPUSerial();
        else return MachineSerialNumberUtil.getSerialNumber("dmidecode -t processor | grep 'ID'", "ID", ":");
    }


}
